package com.hhc.service;

import com.alibaba.fastjson.JSONObject;
import com.hhc.model.ApplianceMaster;
import com.hhc.model.ApplianceMasterExt;

public interface ApplianceMasterService {
    //添加设备
    JSONObject addAppliance(ApplianceMaster applianceMaster);

    //删除设备
    JSONObject deleteAppliance(ApplianceMaster applianceMaster);

    //查询所有设备列表
    JSONObject queryApplianceList(ApplianceMasterExt applianceMasterExt);

    //修改设备名称
    JSONObject updateApplianceName(ApplianceMaster applianceMaster);

    //设备详情
    JSONObject getApplianceMessage(ApplianceMasterExt applianceMasterExt);

    //场景添加设备
    JSONObject addSceneAppliance(ApplianceMaster applianceMaster);

    //删除场景中的设备：把设备的sceneId置空
    JSONObject deleteSceneAppliance(ApplianceMaster applianceMaster);

    //查询设备是否存在
    JSONObject isApplianceExist(ApplianceMaster applianceMaster);

}
